#ifndef SETTING_MEMORY_H
#define SETTING_MEMORY_H

#include <QWidget>
#include <QLabel>
#include <QScrollArea>
#include <QFileDialog>
#include <QPushButton>
#include <QCheckBox>
#include <QCalendarWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QButtonGroup>

#include "BaseWidgets_global.h"

namespace UserManagementSystem {
class BASEWIDGETS_EXPORT Setting_Memory : public QWidget
{
    Q_OBJECT
public:
    explicit Setting_Memory(QWidget *parent = nullptr);

public  slots:
    ///@brief 点击保存路径按钮
    void On_SavePathBtn_clicked();

    ///@brief 点击保存路径按钮
    void On_BackupPathBtn_clicked();

    ///@brief 点击保存路径按钮
    void On_ExoPathBtn_clicked();

    ///@brief 选择开始时间按钮
    void On_BeginTimeBtn_Clicked();

    ///@brief 选择结束时间按钮
    void On_EndTimeBtn_Clicked();

private:
    ///@brief 初始化布局函数
    void InitDefaultLayout();

    ///@brief 初始化样式函数
    void InitDefaultStyle();

    ///@brief 加载图标
    void LoadIcon(QWidget* btn,const QString path_1,const QString path_2);

    ///@brief 绑定信号槽函数
    void BindSignalsToSlots();
signals:

private:
    ///@brief 该页面需要上下滚动
    QScrollArea * m_scrollArea=nullptr;
    QWidget* m_contentWidget=nullptr;//contentwidget需要用来放m_scrollArea

    ///@brief 主布局，v
    QVBoxLayout* m_mainLayout=nullptr;
    QVBoxLayout* m_outLayout=nullptr;

    ///@brief "文件保存路径label"
    QLabel m_label_1;
    QLabel m_label_2;
    QLabel m_savePathLabel;
    QPushButton* m_savePathBtn=nullptr;
    QFrame* m_savePathFrame=nullptr;

    ///@brief 导出文件名
    QLabel m_label_3;
    QButtonGroup* m_outputBtnsGroup=nullptr;
    QCheckBox* m_patientBtn=nullptr;
    QCheckBox* m_dateBtn=nullptr;
    QCheckBox* m_doctorBtn=nullptr;
    QCheckBox* m_typeBtn=nullptr;
    QLabel  m_label_4;

    ///@brief 备份设置
    QLabel m_label_5;
    QLabel m_label_6;
    QLabel m_backupLabel;
    QPushButton* m_backupPathBtn=nullptr;
    QFrame* m_backupPathFrame=nullptr;

    ///@brief选择时间
    QLabel m_label_7;
    QLabel m_beginTime,m_endTime;
    QPushButton* m_beginTimeBtn,* m_endTimeBtn;
    QPushButton* m_backupBtn=nullptr;
    QFrame* m_beginFrame,*m_endFrame;

    ///@brief exocad
    QLabel m_label_8;
    QLabel m_exocadPathLabel;
    QPushButton* m_exocadBtn=nullptr;
    QFrame* m_exoPathFrame=nullptr;

    ///@brief 同步数据
    QLabel m_label_9;
    QLabel m_label_10;
    QPushButton* m_beginSynch=nullptr;

};
}


#endif // SETTING_MEMORY_H
